import React from "react";
import Home from "../pages/home";
import Resouce from "../pages/resouce";
import Skip from "../pages/skip";

interface RouterProps {
    path: string;
    children?: RouterProps[];
    element: React.FC;
}

const routes: RouterProps[] = [
    {
        path: "/", element: Home,
        children: [
            {
                path: "resouce", element: Resouce
            }
        ]
    },
    {
        path: "/:code", element: Skip
    }
]

export type {
    RouterProps
}

export default routes